<template>
  <div>
    <!-- 面包屑导航区域 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>数据管理</el-breadcrumb-item>
      <el-breadcrumb-item>同步数据</el-breadcrumb-item>
    </el-breadcrumb>

    <!-- 卡片视图区域 -->
    <el-card>
      <el-row :gutter="100">
        <el-col :span="4">
            <img src="@/assets/csv-logo.png" class="image">
            <div style="padding: 14px;">
                <span>CSV文件</span>
                <div class="bottom clearfix">
                  <time class="time">同步至数仓</time>
                  <el-button type="text" class="button" @click="synCsv">开始配置</el-button>
                </div>
            </div>
        </el-col>
        <el-col :span="4">
            <img src="@/assets/mysql-logo.png" class="image">
            <div style="padding: 14px;">
                <span>MYSQL</span>
                <div class="bottom clearfix">
                  <time class="time">同步至数仓</time>
                  <el-button type="text" class="button">开始配置</el-button>
                </div>
            </div>
        </el-col>
      </el-row>
    </el-card>

  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  created() {
  },
  methods: {
    // 开始同步csv文件
    synCsv() {
      this.$router.push('/syn_csv')
    }
  }
}
</script>

<style lang="less" scoped>
  .time {
    font-size: 13px;
    color: #999;
  }

  .bottom {
    margin-top: 13px;
    line-height: 12px;
  }

  .button {
    padding: 0;
    float: right;
  }

  .image {
    width: 100%;
    display: block;
  }

  .clearfix:before,
  .clearfix:after {
      display: table;
      content: "";
  }

  .clearfix:after {
      clear: both
  }
</style>
